package service.admin;

import dao.admin.AdminMapper;
import pojo.Admin;

public class AdminServiceImpl implements AdminService{
    //调用dao层的操作，设置一个set接口，方便Spring管理
    private AdminMapper adminMapper;

    public void setAdminMapper(AdminMapper adminMapper) {
        this.adminMapper = adminMapper;
    }

    @Override
    public Admin queryById(String id) {
       return adminMapper.queryById(id);
    }

    @Override
    public Admin queryByPhone(String phone) {
       return adminMapper.queryByPhone(phone);
    }


}
